# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'rGuiSubset.ui'
#
# Created: Wed Nov  2 23:40:20 2011
#      by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_SubsetStadistics(object):
    def setupUi(self, SubsetStadistics):
        SubsetStadistics.setObjectName("SubsetStadistics")
        SubsetStadistics.resize(930, 550)
        self.layoutWidget = QtGui.QWidget(SubsetStadistics)
        self.layoutWidget.setGeometry(QtCore.QRect(10, 10, 471, 531))
        self.layoutWidget.setObjectName("layoutWidget")
        self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtGui.QLabel(self.layoutWidget)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.categorical = QtGui.QComboBox(self.layoutWidget)
        self.categorical.setObjectName("categorical")
        self.horizontalLayout.addWidget(self.categorical)
        self.label_2 = QtGui.QLabel(self.layoutWidget)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout.addWidget(self.label_2)
        self.parts1 = QtGui.QSpinBox(self.layoutWidget)
        self.parts1.setMinimum(1)
        self.parts1.setMaximum(10)
        self.parts1.setProperty("value", 4)
        self.parts1.setObjectName("parts1")
        self.horizontalLayout.addWidget(self.parts1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.variableStats = QtGui.QTableWidget(self.layoutWidget)
        self.variableStats.setMinimumSize(QtCore.QSize(0, 0))
        self.variableStats.setObjectName("variableStats")
        self.variableStats.setColumnCount(8)
        self.variableStats.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.variableStats.setHorizontalHeaderItem(7, item)
        self.variableStats.horizontalHeader().setVisible(True)
        self.variableStats.horizontalHeader().setCascadingSectionResizes(False)
        self.variableStats.horizontalHeader().setDefaultSectionSize(100)
        self.variableStats.horizontalHeader().setHighlightSections(True)
        self.variableStats.horizontalHeader().setMinimumSectionSize(27)
        self.variableStats.horizontalHeader().setSortIndicatorShown(False)
        self.variableStats.horizontalHeader().setStretchLastSection(False)
        self.variableStats.verticalHeader().setDefaultSectionSize(30)
        self.variableStats.verticalHeader().setMinimumSectionSize(21)
        self.verticalLayout.addWidget(self.variableStats)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_5 = QtGui.QLabel(self.layoutWidget)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_2.addWidget(self.label_5)
        self.selected1 = QtGui.QSpinBox(self.layoutWidget)
        self.selected1.setMinimum(1)
        self.selected1.setProperty("value", 1)
        self.selected1.setObjectName("selected1")
        self.horizontalLayout_2.addWidget(self.selected1)
        self.plot1 = QtGui.QRadioButton(self.layoutWidget)
        self.plot1.setChecked(True)
        self.plot1.setObjectName("plot1")
        self.horizontalLayout_2.addWidget(self.plot1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.line = QtGui.QFrame(self.layoutWidget)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtGui.QLabel(self.layoutWidget)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.noCategorical = QtGui.QComboBox(self.layoutWidget)
        self.noCategorical.setObjectName("noCategorical")
        self.horizontalLayout_3.addWidget(self.noCategorical)
        self.label_4 = QtGui.QLabel(self.layoutWidget)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_3.addWidget(self.label_4)
        self.parts2 = QtGui.QSpinBox(self.layoutWidget)
        self.parts2.setMinimum(1)
        self.parts2.setMaximum(10)
        self.parts2.setProperty("value", 4)
        self.parts2.setObjectName("parts2")
        self.horizontalLayout_3.addWidget(self.parts2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.variable2Stats = QtGui.QTableWidget(self.layoutWidget)
        self.variable2Stats.setObjectName("variable2Stats")
        self.variable2Stats.setColumnCount(8)
        self.variable2Stats.setRowCount(0)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.variable2Stats.setHorizontalHeaderItem(7, item)
        self.verticalLayout.addWidget(self.variable2Stats)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_6 = QtGui.QLabel(self.layoutWidget)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout_4.addWidget(self.label_6)
        self.selected2 = QtGui.QSpinBox(self.layoutWidget)
        self.selected2.setMinimum(1)
        self.selected2.setProperty("value", 1)
        self.selected2.setObjectName("selected2")
        self.horizontalLayout_4.addWidget(self.selected2)
        self.plot2 = QtGui.QRadioButton(self.layoutWidget)
        self.plot2.setObjectName("plot2")
        self.horizontalLayout_4.addWidget(self.plot2)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.layoutWidget1 = QtGui.QWidget(SubsetStadistics)
        self.layoutWidget1.setGeometry(QtCore.QRect(501, 103, 421, 441))
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.layoutWidget1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.canvasSub = QtGui.QLabel(self.layoutWidget1)
        self.canvasSub.setText("")
        self.canvasSub.setObjectName("canvasSub")
        self.verticalLayout_3.addWidget(self.canvasSub)
        self.pushButton = QtGui.QPushButton(self.layoutWidget1)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout_3.addWidget(self.pushButton)
        self.layoutWidget2 = QtGui.QWidget(SubsetStadistics)
        self.layoutWidget2.setGeometry(QtCore.QRect(500, 12, 421, 88))
        self.layoutWidget2.setObjectName("layoutWidget2")
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.layoutWidget2)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.groupBox = QtGui.QGroupBox(self.layoutWidget2)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.boxplotButton = QtGui.QRadioButton(self.groupBox)
        self.boxplotButton.setChecked(True)
        self.boxplotButton.setObjectName("boxplotButton")
        self.verticalLayout_2.addWidget(self.boxplotButton)
        self.radioHist = QtGui.QRadioButton(self.groupBox)
        self.radioHist.setObjectName("radioHist")
        self.verticalLayout_2.addWidget(self.radioHist)
        self.horizontalLayout_6.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.layoutWidget2)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.barsButton = QtGui.QPushButton(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.barsButton.sizePolicy().hasHeightForWidth())
        self.barsButton.setSizePolicy(sizePolicy)
        self.barsButton.setObjectName("barsButton")
        self.horizontalLayout_5.addWidget(self.barsButton)
        self.horizontalLayout_6.addWidget(self.groupBox_2)

        self.retranslateUi(SubsetStadistics)
        QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"), SubsetStadistics.closeWindow)
        QtCore.QObject.connect(self.parts1, QtCore.SIGNAL("valueChanged(int)"), SubsetStadistics.splitVariable)
        QtCore.QObject.connect(self.categorical, QtCore.SIGNAL("currentIndexChanged(int)"), SubsetStadistics.splitVariable)
        QtCore.QObject.connect(self.noCategorical, QtCore.SIGNAL("currentIndexChanged(QString)"), SubsetStadistics.splitVariable2)
        QtCore.QObject.connect(self.parts2, QtCore.SIGNAL("valueChanged(int)"), SubsetStadistics.splitVariable2)
        QtCore.QObject.connect(self.selected1, QtCore.SIGNAL("valueChanged(int)"), SubsetStadistics.selectGroup)
        QtCore.QObject.connect(self.variableStats, QtCore.SIGNAL("cellClicked(int,int)"), SubsetStadistics.selectRow)
        QtCore.QObject.connect(self.variable2Stats, QtCore.SIGNAL("cellClicked(int,int)"), SubsetStadistics.selectRow2)
        QtCore.QObject.connect(self.selected2, QtCore.SIGNAL("valueChanged(int)"), SubsetStadistics.selectGroup2)
        QtCore.QObject.connect(self.boxplotButton, QtCore.SIGNAL("clicked()"), SubsetStadistics.boxPlot)
        QtCore.QObject.connect(self.radioHist, QtCore.SIGNAL("clicked()"), SubsetStadistics.histogram)
        QtCore.QObject.connect(self.barsButton, QtCore.SIGNAL("clicked()"), SubsetStadistics.bars)
        QtCore.QMetaObject.connectSlotsByName(SubsetStadistics)

    def retranslateUi(self, SubsetStadistics):
        SubsetStadistics.setWindowTitle(QtGui.QApplication.translate("SubsetStadistics", "Subset Stadistics", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("SubsetStadistics", "Categorical Variable:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("SubsetStadistics", "Parts:", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("SubsetStadistics", "Min. Value", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("SubsetStadistics", "1st. Qu.", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("SubsetStadistics", "3rd Qu.", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("SubsetStadistics", "Median", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(4).setText(QtGui.QApplication.translate("SubsetStadistics", "Max. Value", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(5).setText(QtGui.QApplication.translate("SubsetStadistics", "Mean", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(6).setText(QtGui.QApplication.translate("SubsetStadistics", "Std. Deviation", None, QtGui.QApplication.UnicodeUTF8))
        self.variableStats.horizontalHeaderItem(7).setText(QtGui.QApplication.translate("SubsetStadistics", "Samples", None, QtGui.QApplication.UnicodeUTF8))
        self.label_5.setText(QtGui.QApplication.translate("SubsetStadistics", "Set selected:", None, QtGui.QApplication.UnicodeUTF8))
        self.plot1.setText(QtGui.QApplication.translate("SubsetStadistics", "plot", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("SubsetStadistics", "Non Categorical:", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("SubsetStadistics", "Parts:", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(0).setText(QtGui.QApplication.translate("SubsetStadistics", "Min. Value", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(1).setText(QtGui.QApplication.translate("SubsetStadistics", "1st Qu.", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(2).setText(QtGui.QApplication.translate("SubsetStadistics", "3rd Qu.", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(3).setText(QtGui.QApplication.translate("SubsetStadistics", "Median", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(4).setText(QtGui.QApplication.translate("SubsetStadistics", "Max. Value", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(5).setText(QtGui.QApplication.translate("SubsetStadistics", "Mean", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(6).setText(QtGui.QApplication.translate("SubsetStadistics", "Std. Desviation", None, QtGui.QApplication.UnicodeUTF8))
        self.variable2Stats.horizontalHeaderItem(7).setText(QtGui.QApplication.translate("SubsetStadistics", "Samples", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setText(QtGui.QApplication.translate("SubsetStadistics", "Set selected", None, QtGui.QApplication.UnicodeUTF8))
        self.plot2.setText(QtGui.QApplication.translate("SubsetStadistics", "plot", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("SubsetStadistics", "Exit", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("SubsetStadistics", "Plot subset", None, QtGui.QApplication.UnicodeUTF8))
        self.boxplotButton.setText(QtGui.QApplication.translate("SubsetStadistics", "Box Plot", None, QtGui.QApplication.UnicodeUTF8))
        self.radioHist.setText(QtGui.QApplication.translate("SubsetStadistics", "Histogram", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("SubsetStadistics", "Plot Relationship", None, QtGui.QApplication.UnicodeUTF8))
        self.barsButton.setText(QtGui.QApplication.translate("SubsetStadistics", "Bars", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    SubsetStadistics = QtGui.QWidget()
    ui = Ui_SubsetStadistics()
    ui.setupUi(SubsetStadistics)
    SubsetStadistics.show()
    sys.exit(app.exec_())

